import axios from "axios";

const service = axios.create({
    baseURL: "",
    timeout: 30000,
    withCredentials: true,
    headers: {
        "Content-Type": "application/json;charset=UTF-8"
    }
})
service.interceptors.request.use(
    config => {
        return config
    },
    error => {
        Promise.reject(error)
    }
)
service.interceptors.response.use(
    response => {
        return response.data
    },
    error => {
        Promise.reject(error)
    }
)
export default service;